#include <QtNetwork>
#include <Qdebug>


#include "server.h"
#include "connection.h"


Server::Server(QObject *parent) :
	QTcpServer(parent) {
	
}

void Server::incomingConnection(int socketDescriptor) {
	
    Connection *connection = new Connection(this);
    connection->setSocketDescriptor(socketDescriptor);
    emit newConnection(connection);
}

Server::~Server()
{
	
}